<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位-绝对定位</title>
    <style>

        /* 绝对定位: absolute + left/right + top/bottom */
        /* 特点：1.absolute绝对定位，脱离原本的文档流，2.移动，失去原来的位置，相对父元素发生的位移 */
        body {
            background-image: url('img/sf.png');
            background-repeat: no-repeat;
            background-size: 1700px 1000px; 
            background-position: center;  
            display: flex;
            justify-content: center;
            align-items: flex-start;
            height: 100vh;
            margin: 0;
        }
        .container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: flex-end;
            width: 80%;
            height: 100%;
        }
        .block {
            width: 80px;
            height: 60px;
            background-color: black;
            color: white;
            display: flex;
            align-items: center;
            margin: 0px;
            transition: background-color 0.5s;
        }
        .block:hover {
            background-color: white;
            color: black;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="block">查询快递</div>
        <div class="block">查询快递</div>
        <div class="block">查询快递</div>
        <div class="block">查询快递</div>
        <div class="block">查询快递</div>
        <div class="block">查询快递</div>
        